home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 10 / FreelogHS10.iso / Apprendre / Trainers / id86.swf / scripts / DefineButton2_67 / BUTTONCONDACTION on(keyPress Space).as
Text File  |  2002-02-16  |  1KB  |  74 lines

  1. on(keyPress "<Space>"){
  2.    if(IncorrectDisplay == false)
  3.    {
  4.       if(Instrument == 2)
  5.       {
  6.          Valve1 = false;
  7.          Valve2 = false;
  8.          Valve3 = false;
  9.          Valve4 = false;
  10.          if(Key.isDown(37))
  11.          {
  12.             Valve3 = true;
  13.          }
  14.          if(Key.isDown(40))
  15.          {
  16.             Valve2 = true;
  17.          }
  18.          if(Key.isDown(39))
  19.          {
  20.             Valve1 = true;
  21.          }
  22.          if(Key.isDown(67))
  23.          {
  24.             Valve1 = true;
  25.          }
  26.          if(Key.isDown(88))
  27.          {
  28.             Valve2 = true;
  29.          }
  30.          if(Key.isDown(90))
  31.          {
  32.             Valve3 = true;
  33.          }
  34.          gotoAndStop(20);
  35.       }
  36.       else if(Instrument != 3)
  37.       {
  38.          Valve1 = false;
  39.          Valve2 = false;
  40.          Valve3 = false;
  41.          Valve4 = false;
  42.          if(Key.isDown(37))
  43.          {
  44.             Valve1 = true;
  45.          }
  46.          if(Key.isDown(40))
  47.          {
  48.             Valve2 = true;
  49.          }
  50.          if(Key.isDown(39))
  51.          {
  52.             Valve3 = true;
  53.          }
  54.          if(Key.isDown(67))
  55.          {
  56.             Valve1 = true;
  57.          }
  58.          if(Key.isDown(88))
  59.          {
  60.             Valve2 = true;
  61.          }
  62.          if(Key.isDown(90))
  63.          {
  64.             Valve3 = true;
  65.          }
  66.          if(Key.isDown(96))
  67.          {
  68.             Valve4 = true;
  69.          }
  70.          gotoAndStop(20);
  71.       }
  72.    }
  73. }
  74.